package com.prs.crm.domain.crm;

import java.util.Date;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;

import com.prs.crm.domain.BaseEntity;

@Entity
@Table(name = "crm_dispatch")
public class Dispatch extends BaseEntity {

	/**
	 * 海风运输 主数据
	 */
	private static final long serialVersionUID = -6384255321551536080L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	@OneToMany(mappedBy = "dispatch")
	@Cascade({ org.hibernate.annotations.CascadeType.ALL,
			org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
	private Set<DispatchBook> dispatchBook;

	/**
	 * 送货地点
	 */
	private String transportAddress;
	/**
	 * 送货时间
	 */
	private Date transportDate;

	/**
	 * 货号
	 */
	private String transportCode;

	/**
	 * 收货人姓名
	 */
	private String receivePerson;
	/**
	 * 联系电话
	 */
	private String telepone;
	/**
	 * 品名
	 */
	private String productName;
	/**
	 * 数量
	 */
	private int productNum;
	/**
	 * 代收款
	 */
	private Double agancyFund;
	/**
	 * 提付
	 */
	private Double submitFund;
	/**
	 * 已付
	 */
	private Double paidFund;
	/**
	 * 回付
	 */
	private Double conterpartFund;

	/**
	 * 代收人签名
	 */

	private String anotherPerson;

	/**
	 * 匹配编号
	 * 
	 * @return
	 */
	private String dishfRecod;

	/**
	 * 页码
	 * 
	 * @return
	 */
	private String dispageNum;

	/**
	 * 提付金额
	 * 
	 * @return
	 */
	private String dnpay1;
	/**
	 * 已付金额
	 * 
	 * @return
	 */
	private String dnpay2;
	/**
	 * 回付金额
	 * 
	 * @return
	 */
	private String dnpay3;
	/**
	 * 总金额
	 * 
	 * @return
	 */
	private String dnpayAll;

	// -----------------------------------------

	/**
	 * 此次单据所，有的提付
	 */
	private String allPay1;

	/**
	 * 此次单据所，有的已付
	 */
	private String allPay2;

	/**
	 * 此次单据所，有的回付
	 */
	private String allPay3;

	/**
	 * 此次单据所，有的合计
	 */
	private String alltotalPay;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTransportAddress() {
		return transportAddress;
	}

	public void setTransportAddress(String transportAddress) {
		this.transportAddress = transportAddress;
	}

	public Date getTransportDate() {
		return transportDate;
	}

	public void setTransportDate(Date transportDate) {
		this.transportDate = transportDate;
	}

	public String getTransportCode() {
		return transportCode;
	}

	public void setTransportCode(String transportCode) {
		this.transportCode = transportCode;
	}

	public String getReceivePerson() {
		return receivePerson;
	}

	public void setReceivePerson(String receivePerson) {
		this.receivePerson = receivePerson;
	}

	public String getTelepone() {
		return telepone;
	}

	public void setTelepone(String telepone) {
		this.telepone = telepone;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public int getProductNum() {
		return productNum;
	}

	public void setProductNum(int productNum) {
		this.productNum = productNum;
	}

	public Double getAgancyFund() {
		return agancyFund;
	}

	public void setAgancyFund(Double agancyFund) {
		this.agancyFund = agancyFund;
	}

	public Double getSubmitFund() {
		return submitFund;
	}

	public void setSubmitFund(Double submitFund) {
		this.submitFund = submitFund;
	}

	public Double getPaidFund() {
		return paidFund;
	}

	public void setPaidFund(Double paidFund) {
		this.paidFund = paidFund;
	}

	public Double getConterpartFund() {
		return conterpartFund;
	}

	public void setConterpartFund(Double conterpartFund) {
		this.conterpartFund = conterpartFund;
	}

	public String getAnotherPerson() {
		return anotherPerson;
	}

	public void setAnotherPerson(String anotherPerson) {
		this.anotherPerson = anotherPerson;
	}

	public String getDishfRecod() {
		return dishfRecod;
	}

	public void setDishfRecod(String dishfRecod) {
		this.dishfRecod = dishfRecod;
	}

	public String getDispageNum() {
		return dispageNum;
	}

	public void setDispageNum(String dispageNum) {
		this.dispageNum = dispageNum;
	}

	public String getDnpay1() {
		return dnpay1;
	}

	public void setDnpay1(String dnpay1) {
		this.dnpay1 = dnpay1;
	}

	public String getDnpay2() {
		return dnpay2;
	}

	public void setDnpay2(String dnpay2) {
		this.dnpay2 = dnpay2;
	}

	public String getDnpay3() {
		return dnpay3;
	}

	public void setDnpay3(String dnpay3) {
		this.dnpay3 = dnpay3;
	}

	public String getDnpayAll() {
		return dnpayAll;
	}

	public void setDnpayAll(String dnpayAll) {
		this.dnpayAll = dnpayAll;
	}

	public String getAllPay1() {
		return allPay1;
	}

	public void setAllPay1(String allPay1) {
		this.allPay1 = allPay1;
	}

	public String getAllPay2() {
		return allPay2;
	}

	public void setAllPay2(String allPay2) {
		this.allPay2 = allPay2;
	}

	public String getAllPay3() {
		return allPay3;
	}

	public void setAllPay3(String allPay3) {
		this.allPay3 = allPay3;
	}

	public String getAlltotalPay() {
		return alltotalPay;
	}

	public void setAlltotalPay(String alltotalPay) {
		this.alltotalPay = alltotalPay;
	}

	public Set<DispatchBook> getDispatchBook() {
		return dispatchBook;
	}

	public void setDispatchBook(Set<DispatchBook> dispatchBook) {
		this.dispatchBook = dispatchBook;
	}

}
